<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能对联生成器</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <script src="/static/js/couplet.js" defer></script>
</head>
<body>
    <div class="container">
        <h1>智能对联生成器</h1>
        
        <div class="couplet-form">
            <div class="form-group">
                <label for="first-line">上联：</label>
                <textarea id="first-line" placeholder="请输入上联..."></textarea>
            </div>
            
            <div class="form-group">
                <label for="style">风格：</label>
                <select id="style">
                    <option value="traditional">传统</option>
                    <option value="modern">现代</option>
                    <option value="humorous">幽默</option>
                </select>
            </div>
            
            <div class="actions">
                <button id="generate-btn">生成下联</button>
                <button id="random-btn">随机对联</button>
            </div>
        </div>
        
        <div class="couplet-display">
            <div class="first-line" id="display-first"></div>
            <div class="second-line" id="display-second"></div>
        </div>
    </div>
</body>
</html>